import request from '@/utils/request'

export function getRoutesAll() {
  return request({
    url: '/admin/wechatMenu/getAll',
    method: 'get'
  })
}

export function getAll() {
  return request({
    url: '/admin/wechatMenu/getselectData',
    method: 'get'
  })
}

export function getData(query) {
  return request({
    url: '/admin/wechatMenu/getData',
    method: 'get',
    params: query
  })
}

export function createMenu(data) {
  return request({
    url: '/admin/wechatMenu/add',
    method: 'post',
    data
  })
}

export function updateMenu(data) {
  return request({
    url: '/admin/wechatMenu/edit',
    method: 'post',
    data
  })
}

export function delMenu(data) {
  return request({
    url: '/admin/wechatMenu/del',
    method: 'post',
    data
  })
}

export function syncData(data) {
  return request({
    url: '/admin/wechatMenu/syncData',
    method: 'post',
    data
  })
}
